<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #myh1{color: red}                   /*id选择器*/
        .c1{color: deepskyblue;}            /*class选择器*/
        #myh1,h3{background: lightyellow}   /*分组选择器*/
        /*包含type属性的元素*/
        [type="text"]{color: orangered}
        /*任意元素选择器*/
        *{
            /*边框： 边框粗细  实线边框  边框颜色*/
            border: 1px       solid   purple;
        }
    </style>
</head>
<body>
<input type="text">
<input type="password">
<h1 id="myh1">张三</h1>
<h1>李四</h1>
<h1 class="c1">王五</h1>
<div>div1</div>
<div>div2</div>
<div class="c1">div3</div>
<h3 class="c1">我是h3</h3>

</body>
</html>